package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhwyUrgeMapper;
import com.ruoyi.system.domain.ZhwyUrge;
import com.ruoyi.system.service.IZhwyUrgeService;

/**
 * 费用催缴Service业务层处理
 * 
 * @author nhh
 * @date 2024-05-08
 */
@Service
public class ZhwyUrgeServiceImpl implements IZhwyUrgeService 
{
    @Autowired
    private ZhwyUrgeMapper zhwyUrgeMapper;

    /**
     * 查询费用催缴
     * 
     * @param id 费用催缴主键
     * @return 费用催缴
     */
    @Override
    public ZhwyUrge selectZhwyUrgeById(Long id)
    {
        return zhwyUrgeMapper.selectZhwyUrgeById(id);
    }

    /**
     * 查询费用催缴列表
     * 
     * @param zhwyUrge 费用催缴
     * @return 费用催缴
     */
    @Override
    public List<ZhwyUrge> selectZhwyUrgeList(ZhwyUrge zhwyUrge)
    {
        return zhwyUrgeMapper.selectZhwyUrgeList(zhwyUrge);
    }

    /**
     * 新增费用催缴
     * 
     * @param zhwyUrge 费用催缴
     * @return 结果
     */
    @Override
    public int insertZhwyUrge(ZhwyUrge zhwyUrge)
    {
        return zhwyUrgeMapper.insertZhwyUrge(zhwyUrge);
    }

    /**
     * 修改费用催缴
     * 
     * @param zhwyUrge 费用催缴
     * @return 结果
     */
    @Override
    public int updateZhwyUrge(ZhwyUrge zhwyUrge)
    {
        return zhwyUrgeMapper.updateZhwyUrge(zhwyUrge);
    }

    /**
     * 批量删除费用催缴
     * 
     * @param ids 需要删除的费用催缴主键
     * @return 结果
     */
    @Override
    public int deleteZhwyUrgeByIds(Long[] ids)
    {
        return zhwyUrgeMapper.deleteZhwyUrgeByIds(ids);
    }

    /**
     * 删除费用催缴信息
     * 
     * @param id 费用催缴主键
     * @return 结果
     */
    @Override
    public int deleteZhwyUrgeById(Long id)
    {
        return zhwyUrgeMapper.deleteZhwyUrgeById(id);
    }
}
